package com.gxa.eshop.service;



import com.gxa.eshop.exception.BusinessException;
import com.gxa.eshop.pojo.User;

import java.util.Map;

/**
 * Created by bill on 2020/1/6
 **/
public interface UserService {


    public Map<String,String>  login(String phone, String code) throws BusinessException;

    /**
     * 根据token查询用户信息
     * @param token
     * @return
     */
    public User queryUserByToken(String token) throws BusinessException;

}
